"""
    http://projecteuler.net/problem=1
"""

def sum_multiple_of_3_and_5(up_to=1000):
    multiples = []
    
    for n in range(1, up_to):
        if is_multiple_of_3_or_5(n):
            multiples.append(n)
    
    return sum(multiples)
        
def is_multiple_of_3_or_5(n):
    return (n % 3 == 0) or (n % 5 == 0)
        
print sum_multiple_of_3_and_5(1000)